﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using RpgLibrary.CharacterClasses;
namespace RpgEditor
{
    public partial class FormClasses : FormDetails
    {
        #region Field Region
        #endregion
        #region Constructor Region
        public FormClasses()
        {
            InitializeComponent();
            loadToolStripMenuItem.Click += new EventHandler(loadToolStripMenuItem_Click);
            saveToolStripMenuItem.Click += new EventHandler(saveToolStripMenuItem_Click);
            btnAdd.Click += new EventHandler(btnAdd_Click);
            btnEdit.Click += new EventHandler(btnEdit_Click);
            btnDelete.Click += new EventHandler(btnDelete_Click);
        }
        #endregion
        #region Menu Item Event Handler Region
        void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }
        void saveToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }
        #endregion
        #region Button Event Handler Region
        void btnAdd_Click(object sender, EventArgs e)
        {
            using (FormEntityData frmEntityData = new FormEntityData())
            {
                frmEntityData.ShowDialog();
                if (frmEntityData.EntityData != null)
                {
                    lbDetails.Items.Add(frmEntityData.EntityData.ToString());
                }
            }
        }
        void btnEdit_Click(object sender, EventArgs e)
        {
        }
        void btnDelete_Click(object sender, EventArgs e)
        {
        }
        #endregion
    }
}